/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.pig4cloud.pig.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pig4cloud.pig.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 订单记录
 *
 * @author xiaoxiong
 * @date 2022-04-08 18:01:37
 */
@Data
@TableName("xlm_order")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "订单记录")
public class XlmOrder extends BaseEntity {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="id")
    private Integer id;

    /**
     * 订单id
     */
    @ApiModelProperty(value="订单id")
    private String orderid;

    /**
     * 商店id
     */
    @NotBlank(message = "商店不能为空")
    @ApiModelProperty(value="商店id")
    private Integer shopid;

    /**
     * 订单状态0已抢单1已上传2已完成3审核打回4弃单
     */
    @ApiModelProperty(value="订单状态0已抢单1已上传2已完成3审核打回4弃单5已过期")
    private Integer status;

    /**
     * 返现金额
     */
    @NotBlank(message = "返现金额不能为空")
    @ApiModelProperty(value="返现金额")
    private Integer returnmoney;

    /**
     * 达标金额
     */
    @ApiModelProperty(value="达标金额")
    private Integer money;

    /**
     * 支付状态0未支付1已支付2退款中3退款成功
     */
    @ApiModelProperty(value="支付状态0未支付1已支付2退款中3退款成功")
    private String paystatus;


    /**
     * 任务id
     */
    @ApiModelProperty(value="任务id")
    private Integer taskid;


    /**
     * 订单上传id
     */
    @ApiModelProperty(value="订单上传id")
    private Integer orderverifyid;


    /**
     * 删除
     */
    @ApiModelProperty(value="删除")
    private Integer deleted;

    /**
     * 支付id
     */
    @ApiModelProperty(value="支付id")
    private String payid;

    /**
     * 支付金额
     */
    @ApiModelProperty(value="支付金额")
    private Integer paymoney;

    /**
     * 店家标题
     */
    @ApiModelProperty(value="店家标题")
    @TableField(exist = false)
    private String title;

    /**
     * 宣传图
     */
    @ApiModelProperty(value="宣传图")
    @TableField(exist = false)
    private String img;

    /**
     * 背景图
     */
    @ApiModelProperty(value="背景图")
    @TableField(exist = false)
    private String bgimg;

    /**
     * 商标图
     */
    @ApiModelProperty(value="商标图")
    @TableField(exist = false)
    private String bqimg;

    /**
     * 商店类型1美团2饿了么
     */
    @ApiModelProperty(value="商店类型1美团2饿了么")
    @TableField(exist = false)
    private Integer type;

    /**
     * 店家描述
     */
    @ApiModelProperty(value="店家描述")
    @TableField(exist = false)
    private String content;

    /**
     * 是否带图
     */
    @ApiModelProperty(value="是否带图")
    @TableField(exist = false)
    private Integer ishaveimg;

    /**
     * 多少字
     */
    @ApiModelProperty(value="多少字")
    @TableField(exist = false)
    private Integer littlesize;

    /**
     * 不能点什么
     */
    @ApiModelProperty(value="不能点什么")
    @TableField(exist = false)
    private String nocan;

    /**
     * 只能点什么
     */
    @ApiModelProperty(value="只能点什么")
    @TableField(exist = false)
    private String can;
}
